﻿@model IEnumerable<MAPDavy.Entities.MAPTemplate>

@{
    ViewBag.Title = "MAPTemplate";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>MAPTemplate</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Year
        </th>
        <th>
            TeacherID
        </th>
        <th>
            TeacherLastName
        </th>
        <th>
            TeacherFirtsName
        </th>
        <th>
            StudentGrade
        </th>
        <th>
            ClassID
        </th>
        <th>
            ClassName
        </th>
        <th>
            StudentID
        </th>
        <th>
            StudentLastName
        </th>
        <th>
            StudentFirtsName
        </th>
        <th>
            StudentDateBirth
        </th>
        <th>
            StudentGender
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Year)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TeacherID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TeacherLastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TeacherFirtsName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StudentGrade)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ClassID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ClassName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StudentID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StudentLastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StudentFirtsName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StudentDateBirth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StudentGender)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
